package cn.tedu.jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class HomeWork5 {
    public static void main(String[] args) {
    Connection c=null;
    PreparedStatement p=null;
    ResultSet r=null;
    try{
       c= JDBCUtils2.get();
       String sql="update user set name ='mark' where name='jerry'";
       p=c.prepareStatement(sql);
       p.executeUpdate();
    } catch (Exception e) {
        e.printStackTrace();
    }finally {
        JDBCUtils2.close(null,p,c);
    }
    }
}